import request from "@/utils/request";

// 查询其他产品配置（窗幔设施列表
export function listFacilities(query) {
  return request({
    url: "/md/facilities/list",
    method: "get",
    params: query,
  });
}

// 查询其他产品配置（窗幔设施详细
export function getFacilities(mdWindowCurtainFacilitiesId) {
  return request({
    url: "/md/facilities/" + mdWindowCurtainFacilitiesId,
    method: "get",
  });
}

// 新增其他产品配置（窗幔设施
export function addFacilities(data) {
  return request({
    url: "/md/facilities",
    method: "post",
    data: data,
  });
}

// 修改其他产品配置（窗幔设施
export function updateFacilities(data) {
  return request({
    url: "/md/facilities",
    method: "put",
    data: data,
  });
}

// 删除其他产品配置（窗幔设施
export function delFacilities(mdWindowCurtainFacilitiesId) {
  return request({
    url: "/md/facilities/" + mdWindowCurtainFacilitiesId,
    method: "delete",
  });
}
